/**
 * @name Store
 * @description store的导出文件
 */
//store构造器 将store文件统一处理
// import { Store } from "@/utils/mobx-store";
import { createStore } from "redux";
import loginStore from "./login";
import { AppReducer } from "@/reducers";
import { configure } from "mobx";

configure({ enforceActions: "observed" });

const appReducer = createStore(AppReducer);

// export default new Store({
//   loginStore
// });
class Store {
  constructor() {
    this.loginStore = new loginStore(this);
  }
}
const newStore = new Store();
export { newStore, appReducer };
